import {useStore} from "~/store";
import {getInfoAction, $response} from "~/api";

export const reGetAdmin = async () => {
    const response = await getInfoAction()
    $response(response, () => {
        const $store = useStore()
        $store.admin_info = response.data.info
    })
}